home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10508 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  46 lines

  1. Path: ccn.cs.dal.ca!aa254
  2. From: aa254@ccn.cs.dal.ca (Bill Fraser)
  3. Newsgroups: comp.lang.c
  4. Subject: Another What does this do...
  5. Date: 18 Mar 1996 12:27:29 GMT
  6. Organization: Chebucto Community Net
  7. Message-ID: <4ijkrh$8t@apollo.isisnet.com>
  8. NNTP-Posting-Host: ccn.cs.dal.ca
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. Hi!  I've been trying mot of the weekend to make sense of Microsoft's
  12. program to read Rich Text Formatted files.  I got it from their site
  13. with the V1.4 rtf documentation and am hoping to adapt it to be able
  14. to extract text and attributes for displaying word processor text on
  15. character based color terminals ( color, bold, blink, inverse video ).
  16.  
  17. Asside from never having programmed in C before, I figured I was doing
  18. quite well until I came across the following statement:
  19.  
  20.     pb = (char *)&dop;
  21.  
  22. where pb and dop are defined as:
  23.     char *pb;
  24. and
  25.     dop is structure DOP like this:
  26.  
  27.     typedef struct doc_prop
  28.     {
  29.         int xaPage;
  30.           ...
  31.         char flandscape;
  32.     } DOP;
  33.  
  34. I have searched The Waite Group's C PRIMER PLUS with no
  35. luck and lots of frustration - hell of a way to learn ( to
  36. hate ) C!
  37.  
  38. Can anyone shed some light on this?  If more info is needed
  39. please spell it out - I may not know what you are referring
  40. to!  So sorry :(
  41.  
  42. Thanks for the assistance.
  43. bill
  44. alter ego: bill.fraser@nspower.ns.ca
  45. --
  46.